import xadmin

from .models import UserCart, UserCartDone, UserPinglun


class UserCartModelAdmin(object):
    """用户购物车的管理"""
    list_display = ["usercart_mobile", "id", "product_name", "is_show"]


xadmin.site.register(UserCart, UserCartModelAdmin)

class UserCartDoneModelAdmin(object):
    """用户购物车的管理"""
    list_display = ["usercart_mobile", "id", "product_name", "is_show"]


xadmin.site.register(UserCartDone, UserCartDoneModelAdmin)

class UserPinglunModelAdmin(object):
    """用户购物车的管理"""
    list_display = ["usercart_mobile", "id", "product_name", "is_show", "content"]


xadmin.site.register(UserPinglun, UserPinglunModelAdmin)
